<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fnt" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CDC疾控中心</title>
    <link rel="stylesheet" href="<%=path%>/web/css/style2.css"/>
    <link rel="stylesheet" href="<%=path%>/web/css/style/style2.css" />
    <script src="<%=path%>/web/js/jq.js"></script>
    <script src="<%=path%>/web/js/jq1.js"></script>
</head>
<body>
<div class="content">
<div class="subject1">
<div class="subject_con1" id="xxxx">
    <c:set var="num" value="${sessionScope.num}"/>
    <h1 id="${num}">${num+1}、${questions.get(num).subject}？</h1>
<%--    <c:if test="${questions.get(num).question.category.categoryName eq '单选题'}" >单选题</c:if>--%>
<%--    <c:if test="${questions.get(num).question.category.categoryName eq '多选题'}" >多选题</c:if>--%>
<%--    <c:if test="${questions.get(num).question.category.categoryName eq '判断题'}" >判断题</c:if>)--%>
    <table width="272" border="0" cellspacing="0" cellpadding="0" class="selected">
        <c:forEach items="${questions.get(num).answers}" var="answers" varStatus="stat">
            <tr>
                <td style="width: 60px"><input class="daan1" name="abcd" type="radio" value="" /></td>
                <td>${answers.answerContent}</td>
            </tr>
        </c:forEach>
    </table>
    <div class="clear"></div>
    <div class="anwsercon" style="display:none;" >
        <p style="color:#f00;">正确答案为:
            <c:forEach items="${questions.get(num).answers}" var="answer" varStatus="stat">
                <c:if test="${answer.trueAnswer ne '1'}">
                    ${answer.answerContent}
                </c:if>
            </c:forEach></p>
        <p class="xiangjie">详解：
            <span class="jiecon" >${questions.get(num).explain}</span>
        </p>
    </div>
</div>
</div>
</div>
<div class="anwsercard">
    <ul class="anwser_ul">
        <c:forEach items="${questions}" var="question" varStatus="start">
            <li><a href="#" data-id="${start.count}" class="datika">${start.count}</a></li>
        </c:forEach>
        <div class="clear"></div>
    </ul>
    <div class="clear"></div>
    </div>
<%--<script type="text/javascript" src="<%=path%>/web/js/jquery-1.8.0.min.js"></script>--%>
<%--<script type="text/javascript" src="<%=path%>/web/js/define.js"></script>--%>
</body>
</html>